#include "global.h"

uint qHash(const QRect &key, uint seed) {
    uint h = qHash(key.x(), seed);
    h = h * 31 + qHash(key.y(), seed);
    h = h * 31 + qHash(key.width(), seed);
    h = h * 31 + qHash(key.height(), seed);
    return h;
}

namespace Global
{
    QString version = "1.1.0";
    QString name = "kylin-screencap";
    QString nameOutput = "[" + name + "]";
    int showclickCounter = 0;

    QStringList platForm = {"pc"};


    bool isRecordKey = false;
    bool isShowCursor = false;
    bool isShowCursorPath = false;
    bool isShowCursorClick = false;
    bool isOpenSysSound = true;
    bool isOpenMic = false;

    bool recordStatus = false;
    QList<QString> listShortcut = { };
}

SaveAction g_saveAction = SaveAction::ONLY_SAVE;
